import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios

import axios from 'axios'
// import Router from 'vue-router'


Vue.config.productionTip = false

Vue.use(ElementUI);
// Vue.use(Router);

// 挂载全局
Vue.prototype.$http = httpRequest // ajax 请求方法
Vue.prototype.$axios = axios // ajax 原生 请求方法

axios.defaults.baseURL = 'http://localhost:10001'

new Vue({
    render: h => h(App),
    // Router
}).$mount('#app')